package cate.game.train.inscription.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

import java.util.Set;

@ClientMsg(title = "分解铭文 的 请求")
public class InscriptionBreakReq implements MsgInput {
    @NoteField("要分解的铭文")
    public Set<String> uids;
    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.inscription.breakInscription(cc.getRole(), uids);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.INSCRIPTION_BREAK_REQ;
    }
}
